#!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""
@author:shengwei
@file:sixunhuan.py
@time:2018/2/23 002317:31
"""

import threading, multiprocessing

def loop():
    x = 0
    while True:
        x = x ^ 1

for i in range(multiprocessing.cpu_count()):
    t = threading.Thread(target=loop)
    t.start()